package com.order.service.impl.loadbalance;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @Description: LoadBalance
 * @Author: mingtian
 * @CreateDate: 2020/1/10 15:52
 * @Version: 1.0
 */
public interface LoadBalance {
    /**
     * 根据不同的地址 返回路由的 rpc 地址
     *
     * @param serviceInstanceList
     * @return
     */
    ServiceInstance getServiceInstance(List<ServiceInstance> serviceInstanceList);
}
